home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96a.txt / 000173_icon-group-sender _Wed Aug 7 10:56:09 1996.msg < prev    next >
Internet Message Format  |  1996-09-05  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Wed, 7 Aug 1996 13:28:49 MST
  2. Date: Wed, 7 Aug 1996 10:56:09 -0400 (EDT)
  3. From: "Phillip L. Thomas" <ptho@loc.gov>
  4. To: Roger Sorrells <X041RS@tamvm1.tamu.edu>
  5. Cc: icon-group@cs.arizona.edu
  6. Subject: Re: dos system call
  7. In-Reply-To: <199608062035.AA14689@optima.cs.arizona.edu>
  8. Message-Id: <Pine.A32.3.93.960807105123.56099C-100000@rs8.loc.gov>
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12. Status: O
  13.  
  14. I believe I asked Ralph Griswold this question a few years
  15. back and he replied that the variation of effects from making
  16. a system call were so varied that environment variables could
  17. not be set, only read.
  18.  
  19. The system() call has another effect in DOS which is unfortunate:
  20. it calls up another copy of COMMAND.COM, meaning you've lost another
  21. 64K of critical memory in addition to the process you are trying
  22. to start. Most DOS C compilers have other ways (exec..) that do not
  23. invoke an addition COMMAND.COM, but this may again be C-compiler
  24. dependent.
  25.  
  26. Phillip Lee Thomas
  27.  
  28.  
  29. On Tue, 6 Aug 1996, Roger Sorrells wrote:
  30.  
  31. > when I include the lines
  32. > system("set")       #1
  33. > system("set x=y")   #2
  34. > system("set")       #3
  35. >  in a program, I get the same output from #3 as from #1,
  36. >  no additional X=y among the environment variables.
  37. > How do I set DOS environment variables from within an Icon program?
  38. > I am using MS-DOS 6.21 and Icon 8.10
  39.  
  40.